﻿using System.ComponentModel;

namespace Framework.Core.Enums
{
	/// <summary>
	/// 返回结果代码枚举
	/// </summary>
	public enum ResultCode
	{
		[Description("success")]
		SUCCESS = 200,

		[Description("参数错误")]
		PARAM_ERROR = 101,

		[Description("验证码错误")]
		CAPTCHA_ERROR = 103,

		[Description("登录错误")]
		LOGIN_ERROR = 105,

		[Description("操作失败")]
		FAIL = 1,

		[Description("服务端出错啦")]
		GLOBAL_ERROR = 500,

		[Description("自定义异常")]
		CUSTOM_ERROR = 110,

		[Description("非法请求")]
		INVALID_REQUEST = 116,

		[Description("授权失败")]
		OAUTH_FAIL = 201,

		[Description("很抱歉，您无权访问该接口，请确保已经登录!")]
		DENY = 401,

		[Description("很抱歉，您的访问权限等级不够，联系管理员!")]
		FORBIDDEN = 403,

		[Description("Bad Request")]
		BAD_REQUEST = 400
	}
}
